<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Add Topics</h2>

                
            </div>
            <div class="box-content">
                <html:form  action="AddTopicAction.do" method="post" onsubmit="return validate()">
                    
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Topic name</label>
                        <!--<input type="text" name="name" class="form-control" id="exampleInputEmail1" placeholder="Enter Topic Name" >-->
                        <html:text  property="name" styleClass="form-control" styleId="exampleInputEmail1" ></html:text>
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="name_error_txt"><html:errors property="name" ></html:errors></span>
                    </div>
                    
                     <div class="form-group">
                        <label for="exampleInputEmail1">Subject</label>
                        <select name="subid">
                            
                            <c:forEach var="subject" items="${applicationScope.li_allsubjects}">
                                <option value="${subject.id}">${subject.name}</option>
                            </c:forEach>

                        </select>
                    </div>
                    
                   
                   
                    
                    <button type="submit" class="btn btn-default">Submit</button>
                </html:form>

           
        </div>
    </div>
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>